Integrand size = 23, antiderivative size = 97 \[ \int \cot ^2(c+d x) \left (a+b \sin ^2(c+d x)\right )^p \, dx=-\frac {\operatorname {AppellF1}\left (-\frac {1}{2},-\frac {1}{2},-p,\frac {1}{2},\sin ^2(c+d x),-\frac {b \sin ^2(c+d x)}{a}\right ) \sqrt {\cos ^2(c+d x)} \csc (c+d x) \sec (c+d x) \left (a+b \sin ^2(c+d x)\right )^p \left (1+\frac {b \sin ^2(c+d x)}{a}\right )^{-p}}{d} \]
[Out]
Time = 0.11 (sec) , antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {3275, 525, 524} \[ \int \cot ^2(c+d x) \left (a+b \sin ^2(c+d x)\right )^p \, dx=-\frac {\sqrt {\cos ^2(c+d x)} \csc (c+d x) \sec (c+d x) \left (a+b \sin ^2(c+d x)\right )^p \left (\frac {b \sin ^2(c+d x)}{a}+1\right )^{-p} \operatorname {AppellF1}\left (-\frac {1}{2},-\frac {1}{2},-p,\frac {1}{2},\sin ^2(c+d x),-\frac {b \sin ^2(c+d x)}{a}\right )}{d} \]
[In]
[Out]
Rule 524
Rule 525
Rule 3275
Rubi steps \begin{align*} \text {integral}& = \frac {\left (\sqrt {\cos ^2(c+d x)} \sec (c+d x)\right ) \text {Subst}\left (\int \frac {\sqrt {1-x^2} \left (a+b x^2\right )^p}{x^2} \, dx,x,\sin (c+d x)\right )}{d} \\ & = \frac {\left (\sqrt {\cos ^2(c+d x)} \sec (c+d x) \left (a+b \sin ^2(c+d x)\right )^p \left (1+\frac {b \sin ^2(c+d x)}{a}\right )^{-p}\right ) \text {Subst}\left (\int \frac {\sqrt {1-x^2} \left (1+\frac {b x^2}{a}\right )^p}{x^2} \, dx,x,\sin (c+d x)\right )}{d} \\ & = -\frac {\operatorname {AppellF1}\left (-\frac {1}{2},-\frac {1}{2},-p,\frac {1}{2},\sin ^2(c+d x),-\frac {b \sin ^2(c+d x)}{a}\right ) \sqrt {\cos ^2(c+d x)} \csc (c+d x) \sec (c+d x) \left (a+b \sin ^2(c+d x)\right )^p \left (1+\frac {b \sin ^2(c+d x)}{a}\right )^{-p}}{d} \\ \end{align*}
Time = 0.56 (sec) , antiderivative size = 98, normalized size of antiderivative = 1.01 \[ \int \cot ^2(c+d x) \left (a+b \sin ^2(c+d x)\right )^p \, dx=-\frac {\operatorname {AppellF1}\left (-\frac {1}{2},-\frac {1}{2},-p,\frac {1}{2},\sin ^2(c+d x),-\frac {b \sin ^2(c+d x)}{a}\right ) \sqrt {\cos ^2(c+d x)} \csc (c+d x) \sec (c+d x) \left (a+b \sin ^2(c+d x)\right )^p \left (\frac {a+b \sin ^2(c+d x)}{a}\right )^{-p}}{d} \]
[In]
[Out]
\[\int \left (\cot ^{2}\left (d x +c \right )\right ) {\left (a +\left (\sin ^{2}\left (d x +c \right )\right ) b \right )}^{p}d x\]
[In]
[Out]
\[ \int \cot ^2(c+d x) \left (a+b \sin ^2(c+d x)\right )^p \, dx=\int { {\left (b \sin \left (d x + c\right )^{2} + a\right )}^{p} \cot \left (d x + c\right )^{2} \,d x } \]
[In]
[Out]
\[ \int \cot ^2(c+d x) \left (a+b \sin ^2(c+d x)\right )^p \, dx=\int \left (a + b \sin ^{2}{\left (c + d x \right )}\right )^{p} \cot ^{2}{\left (c + d x \right )}\, dx \]
[In]
[Out]
\[ \int \cot ^2(c+d x) \left (a+b \sin ^2(c+d x)\right )^p \, dx=\int { {\left (b \sin \left (d x + c\right )^{2} + a\right )}^{p} \cot \left (d x + c\right )^{2} \,d x } \]
[In]
[Out]
\[ \int \cot ^2(c+d x) \left (a+b \sin ^2(c+d x)\right )^p \, dx=\int { {\left (b \sin \left (d x + c\right )^{2} + a\right )}^{p} \cot \left (d x + c\right )^{2} \,d x } \]
[In]
[Out]
Timed out. \[ \int \cot ^2(c+d x) \left (a+b \sin ^2(c+d x)\right )^p \, dx=\int {\mathrm {cot}\left (c+d\,x\right )}^2\,{\left (b\,{\sin \left (c+d\,x\right )}^2+a\right )}^p \,d x \]
[In]
[Out]